package cn.crce.cloud9.simple;

/**
 * @author OnCloud9
 * @description
 * @project NRCE-TEST
 * @date 2022年09月10日 上午 08:32
 */
public class Case4 implements Runnable {
    private int x=0;
    private int y=0;

    public static void main(String[]args){
        Case4 r = new Case4();
        //*********Found**********
        Thread t = new Thread( r );
        t.start();
    }
    public void run() {
        //*********Found**********
        int k = 0;
        for(;;){
            x++;
            //*********Found**********
            y++;
            k++;
            if (k>5) break;
            System.out.println("x=" + x + ",y ="+ y);
        }
    }
}
